home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
mapneeds
/
MapNeedControl.as
< prev
next >
Wrap
Text File
|
2011-09-19
|
7KB
|
224 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
e.f.h = new g();
}
§§pop();
if(!e.f.h[§§constant(4)])
{
f.h[§§constant(4)] extends f[§§constant(7)];
var _loc2_ = f.h[§§constant(4)] = function()
{
super();
_global[§§constant(5)] = this;
this[§§constant(6)]();
}[§§constant(8)];
_loc2_[§§constant(6)] = function()
{
this[§§constant(9)] = _global[§§constant(10)][§§constant(11)][§§constant(12)];
this.h = new §\§\§constant(13)§();
this[§§constant(14)]();
};
_loc2_[§§constant(14)] = function()
{
var _loc5_ = new §\§\§constant(13)§();
var _loc7_ = _global[§§constant(10)][§§constant(11)].h[§§constant(15)];
var _loc4_ = 0;
while(_loc4_ < _loc7_)
{
var _loc6_ = _global[§§constant(10)][§§constant(11)].h[_loc4_];
var _loc3_ = 1;
while(_loc3_ <= _loc6_[§§constant(16)])
{
var _loc2_ = f[§§constant(18)][§§constant(19)][§§constant(20)](_loc6_[§§constant(17)]);
if(_loc2_[§§constant(21)] == §§constant(22) && _loc3_ <= _loc6_[§§constant(23)])
{
_loc2_[§§constant(24)] = true;
}
if(_loc2_[§§constant(21)] == §§constant(25) && _loc3_ <= _loc6_[§§constant(26)])
{
_loc2_[§§constant(27)] = true;
}
if(_loc2_[§§constant(21)] == §§constant(28) && _loc3_ <= _loc6_[§§constant(29)])
{
_loc2_[§§constant(30)] = true;
}
_loc5_[§§constant(31)](_loc2_);
_loc3_ = _loc3_ + 1;
}
_loc4_ = _loc4_ + 1;
}
_loc7_ = _loc5_[§§constant(15)];
_loc4_ = 0;
while(_loc4_ < _loc7_)
{
_loc6_ = _loc5_[_loc4_];
f[§§constant(32)][§§constant(33)][§§constant(34)](_loc6_);
_loc4_ = _loc4_ + 1;
}
};
_loc2_[§§constant(35)] = function()
{
if(this[§§constant(36)] == undefined)
{
return undefined;
}
this[§§constant(36)] += 40;
if(this[§§constant(36)] > this[§§constant(37)])
{
this[§§constant(38)]();
}
};
_loc2_[§§constant(39)] = function()
{
this[§§constant(36)] = 0;
this[§§constant(37)] = f[§§constant(18)][§§constant(40)][§§constant(41)](5000,20);
_global[§§constant(42)][§§constant(43)]();
};
_loc2_[§§constant(38)] = function()
{
this[§§constant(36)] = 0;
this[§§constant(37)] = f[§§constant(18)][§§constant(40)][§§constant(41)](this[§§constant(9)],20);
if(this.h[§§constant(15)] > 0)
{
var _loc3_ = this[§§constant(44)]();
if(_loc3_ == undefined)
{
_loc3_ = f[§§constant(18)][§§constant(19)][§§constant(20)](this.h);
}
_loc3_[§§constant(45)]();
_global[§§constant(46)][§§constant(47)]();
}
};
_loc2_[§§constant(44)] = function()
{
if(eval(§§constant(48))[§§constant(49)]() > 0.25)
{
return undefined;
}
var _loc4_ = this.h[§§constant(15)];
var _loc2_ = 0;
while(_loc2_ < _loc4_)
{
var _loc3_ = this.h[_loc2_];
if(_loc3_[§§constant(50)] == §§constant(51))
{
this.h[§§constant(52)](_loc2_,1);
return _loc3_;
}
_loc2_ = _loc2_ + 1;
}
return undefined;
};
_loc2_[§§constant(53)] = function()
{
if(this.h[§§constant(15)] > 0)
{
return true;
}
var _loc5_ = _global[§§constant(32)].h[§§constant(15)];
var _loc3_ = 0;
while(_loc3_ < _loc5_)
{
var _loc4_ = _global[§§constant(32)][§§constant(54) + _global[§§constant(32)].h[_loc3_]];
if(_loc4_[§§constant(55)])
{
return true;
}
_loc3_ = _loc3_ + 1;
}
return false;
};
_loc2_[§§constant(56)] = function(tp)
{
var _loc4_ = _global[§§constant(32)].h[§§constant(15)];
var _loc2_ = 0;
while(_loc2_ < _loc4_)
{
var _loc3_ = _global[§§constant(32)][§§constant(54) + _global[§§constant(32)].h[_loc2_]];
if(_loc3_[§§constant(50)] == tp)
{
return true;
}
_loc2_ = _loc2_ + 1;
}
return false;
};
_loc2_[§§constant(57)] = function()
{
var _loc4_ = 0;
var _loc6_ = _global[§§constant(32)].h[§§constant(15)];
var _loc3_ = 0;
while(_loc3_ < _loc6_)
{
var _loc2_ = _global[§§constant(32)][§§constant(54) + _global[§§constant(32)].h[_loc3_]];
if(_loc2_[§§constant(50)] == §§constant(58) || _loc2_[§§constant(50)] == §§constant(59))
{
_loc4_ = _loc4_ + 1;
}
if(_loc2_[§§constant(50)] == §§constant(60) || _loc2_[§§constant(50)] == §§constant(61))
{
if(!_loc2_[§§constant(62)])
{
_loc4_ = _loc4_ + 1;
}
}
_loc3_ = _loc3_ + 1;
}
_loc6_ = _global[§§constant(63)][§§constant(64)][§§constant(15)];
_loc3_ = 0;
while(_loc3_ < _loc6_)
{
var _loc5_ = _global[§§constant(63)][§§constant(64)][_loc3_];
if(_loc5_[§§constant(65)])
{
_loc4_ = _loc4_ + 1;
}
_loc3_ = _loc3_ + 1;
}
return _loc4_;
};
_loc2_[§§constant(66)] = function()
{
var _loc4_ = new §\§\§constant(13)§();
var _loc5_ = _global[§§constant(32)].h[§§constant(15)];
var _loc2_ = 0;
while(_loc2_ < _loc5_)
{
var _loc3_ = _global[§§constant(32)][§§constant(54) + _global[§§constant(32)].h[_loc2_]];
if(_loc3_[§§constant(50)] == §§constant(67))
{
_loc4_[§§constant(31)](_loc3_);
}
_loc2_ = _loc2_ + 1;
}
var _loc6_ = f[§§constant(18)][§§constant(19)][§§constant(68)](_loc4_);
_loc6_[§§constant(69)](true);
};
§§push(§§constant(70)(f.h[§§constant(4)][§§constant(8)],null,1));
}
§§pop();